package com.xhh.adjust.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhh.model.adjust.dtos.GetMajorDto;
import com.xhh.model.adjust.pojos.Faulty;
import com.xhh.model.adjust.pojos.Major;
import com.xhh.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

public interface MajorService extends IService<Major> {

    /**
     * 根据专业编码获取专业信息
     * @param majorCode
     * @return
     */
    ResponseResult getMajorByCode(String majorCode);

    /**
     * 根据单位id和院系id获取专业列表
     * @param dto
     * @return
     */
    ResponseResult getMajorByUidAndFid(GetMajorDto dto);
}
